package com.github.cyf.interceptorAndFilter.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenyifan
 * @create 2025-04-22 15:06
 */
@RestController
@RequestMapping("/index")
public class IndexController {

    @RequestMapping("/hello")
    public String hello(String msg){
        return "hello, " + msg;
    }

    @RequestMapping("/login")
    public String login(){
        return "login success";
    }
}